package com.cjm.one.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cjm.one.common.result.Result;
import com.cjm.one.model.order.dto.OrderOperateDTO;
import com.cjm.one.model.order.dto.OrderStatusDto;
import com.cjm.one.model.order.enums.OrderParamsTypeEnum;
import com.cjm.one.model.order.enums.OrderStatusEnum;
import com.cjm.one.model.order.vo.OrderInfoVo;

public interface OrderInfoService {
    Result<Page<OrderInfoVo>> list(Long current, Long size, OrderParamsTypeEnum type);

    Result<String> add(OrderOperateDTO orderOperateDTO);

    Result<Boolean> updateById(OrderInfoVo orderInfoVo);

    Result<Boolean> removeById(Long id);

    Result<OrderInfoVo> getAppUserByOrderId(Long id);

    Result<Boolean> updateOrderStatusById(OrderStatusDto orderStatusDto);
}
